//
//  HMNetWorkTool.h
//  NewsBoard
//
//  Created by heima on 16/3/27.
//  Copyright © 2016年 heima. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef void(^FinishedBlock)(id object);

@interface VIZNetWorkTool : AFHTTPSessionManager

+ (instancetype)sharedHMNetWorkTool;

/**
 *  供所有模型调用的通用的请求,模型传入一个URLString,我这个网络工具类,就返回一个数据的id给你,你自己去处理
 *
 *  @param URLString     URLString
 *  @param finishedBlock 完成的回调
 */
- (void)getWithURLString:(NSString *)URLString finishedBlock:(FinishedBlock)finishedBlock;


//带参数
//- (void)getWithURLString:(NSString *)URLString params:(NSDictionary *)params finishedBlock:(FinishedBlock)finishedBlock;

//- (void)postWithURLString:(NSString *)URLString finishedBlock:(FinishedBlock)finishedBlock;

@end
